package de.tudarmstadt.ukp.wikisniffer.userstudy.evaluation;

import java.util.ArrayList;
import java.util.List;

public class PersonalResults {
	
	private String vpNumber;
	
	private List<String> questions;

	public String getVpNumber() {
		return vpNumber;
	}

	public List<String> getQuestions() {
		return questions;
	}

	public PersonalResults(String vpNumber) {
		this.vpNumber = vpNumber;
		this.questions = new ArrayList<String>();
	}

	public void addQuestion(List<ActionLine> actionLines) {
		String question;
		String answer;
		long time;
	
		question = actionLines.get(0).getInfo();
		answer = actionLines.get(actionLines.size()-1).getInfo();
		time = actionLines.get(actionLines.size()-2).getDate().getTime() - actionLines.get(0).getDate().getTime();
		
		String summary = question + "\t" + answer + "\t" + time;
		
		questions.add(summary);
	}

}
